package com.udp;

public class User1 {

    public static void main(String[] args) {

        //开启收发两个线程
        Thread sendThread = new Thread(new TalkSendThread(7777, "localhost", 9999));
        sendThread.setName("User1");
        sendThread.start();
        Thread receiveThread = new Thread(new TalkReceiveThread(8888));
        receiveThread.start();
    }

}



